package com.joysuch.wwyt.bp.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class AppCheckTaskVo {
    private int index;
    // 起止时间
    private Date startTime;
    private Date endTime;
    // 状态
    private String status;

    // 按风险点分组的任务
    private List<PointTaskGroup> pointTaskGroups = new ArrayList<>();

    // 此时间片内可做的任务
    private List<CheckRecordVo> tasks = new ArrayList<>();
    // 此时间片内可做的任务Id
    private List<Long> taskIds = new ArrayList<>();

    public AppCheckTaskVo() {
    }

    public AppCheckTaskVo(Date startTime, Date endTime) {
        this.startTime = startTime;
        this.endTime = endTime;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PointTaskGroup{
        private Long pointId;
        private String pointName;
        private String districtName;
        private List<CheckRecordVo> taskList;
    }

}
